Passing an explicit width in the wfh case or a height in the hfw case
messes up the request caching, and confuses actors that assume they
won't be called with an explicit width/height unless they're being
allocated along the other axis.
https://bugzilla.gnome.org/show_bug.cgi?id=618295
if (request == CLUTTER_REQUEST_HEIGHT_FOR_WIDTH)
{
- clutter_actor_get_preferred_width (child, available_height,
+ clutter_actor_get_preferred_width (child, -1,
&min_width,
&natural_width);
}
else
{
- clutter_actor_get_preferred_height (child, available_width,
+ clutter_actor_get_preferred_height (child, -1,
&min_height,
&natural_height);